{{foreach from=$inventory item=object}}
<!-- ** object -->
<div class="inventory rail_object{{if !$object.is_readable}} not_readable{{/if}} {{$object.type}}"
	 id="object_{{$object.id}}"
	 title="{{$object.title}}"
	 onclick="object_load({{$object.id}});">
	<b>{{$object.name}}</b><br />
	{{if $object.type neq 'up'}}{{$object.type}}{{/if}}
	<span>{{$object.desc}}</span>
</div>

{{if $object.type neq 'up'}}
<!-- ** submenu -->
<div dojoType="dijit.Menu"
	 targetNodeIds="object_{{$object.id}}"
	 style="display: none;">
    <div dojoType="dijit.MenuItem" iconClass="icon_cut" onClick="object_cut({{$object.id}});"{{if !$object.is_writeable}} disabled="disabled"{{/if}}>Ausschneiden</div>
    <div dojoType="dijit.MenuItem" iconClass="icon_copy" onClick="object_copy({{$object.id}});"{{if !$object.is_readable}} disabled="disabled"{{/if}}>Kopieren</div>
    <div dojoType="dijit.MenuItem" iconClass="icon_paste" onClick="object_paste({{$object.id}});"{{if !$object.is_writeable}} disabled="disabled"{{/if}}>Einfügen</div>
    <span dojoType="dijit.MenuSeparator"></span>
    <div dojoType="dijit.MenuItem" iconClass="icon_delete" onClick="object_delete({{$object.id}});"{{if !$object.is_writeable}} disabled="disabled"{{/if}}>Löschen</div>
</div>
{{/if}}
{{/foreach}}